<script src="{{ getAssets }}js/jquery.table2excel.min.js?v={{ assets_version }}"></script>
<script>
function setattroption(id,data) {
	var option = '<option value=""></option>';
	$.each(data, function(index, value) {
		option += '<option value="'+ value.val +'">'+ value.val +'</option>';
	});
	$('#'+id).html(option);
}

$('.excel-download').bind("click", function(){
    $("#dataTables").table2excel({

        exclude: ".noExl",

        name: "导出库存",

        filename: "kcmx",

        fileext: ".xls",

        exclude_img: false,

        exclude_links: false,

        exclude_inputs: false
    });
    return false;
});
</script>